package com.example.warehouse_manager.service;


import com.example.warehouse_manager.entity.ProductType;
import com.example.warehouse_manager.entity.Result;

import java.util.List;

/**
* @author Yang
* @description 针对表【product_type(商品分类表)】的数据库操作Service
* @createDate 2024-03-22 17:05:17
*/
public interface ProductTypeService {

    //查询所有商品分类树
    public List<ProductType> productTypeTree();

    //校验分类编码或分类名称是否存在业务方法
    public Result checkTypeCode(String typeCode);

    //添加商品分类
    public Result saveProductType(ProductType productType);

    //删除商品分类
    public Result deleteProductType(Integer typeId);


    public Result setProductType(ProductType productType);

}
